package com.baichang.taoshunda.entity.em;

public enum IncidentalType {

    商品视频(1), 发布互动(2);

    private Integer code;

    private IncidentalType(Integer code) {
        this.code = code;
    }

    public static IncidentalType valueOfCode(Integer code) {
        IncidentalType[] states = IncidentalType.values();
        for (IncidentalType state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }

}
